//
//  ESRightViewController.m
//  Eyeshot
//
//  Created by lanou3g on 15/7/4.
//  Copyright (c) 2015年 eyeshot. All rights reserved.
//

#import "ESRightViewController.h"

@interface ESRightViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *iconView;
@property (weak, nonatomic) IBOutlet UILabel *loginLabel;

@end

@implementation ESRightViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)didShow
{
   [UIView transitionWithView:self.iconView duration:1.0 options: UIViewAnimationOptionTransitionFlipFromLeft  animations:^{
       self.iconView.image = [UIImage imageNamed:@"smile"];
       self.loginLabel.text = @"开心从此开始";
   } completion:^(BOOL finished) {
       dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
           [UIView transitionWithView:self.iconView duration:1.0 options:UIViewAnimationOptionTransitionFlipFromRight animations:^{
               self.loginLabel.text = @"立即登录";
               self.iconView.image = [UIImage imageNamed:@"default_avatar"];
           } completion:nil];
       });
   }];
}

//审帖
- (IBAction)shentie:(id)sender {

    
}

//收藏
- (IBAction)collection:(id)sender {
     ESLog(@"%@",sender);
}

//反馈建议
- (IBAction)suggest:(id)sender {
     ESLog(@"%@",sender);
}

//离线下载
- (IBAction)download:(id)sender {
     ESLog(@"%@",sender);
}

//消息
- (IBAction)message:(id)sender {
     ESLog(@"%@",sender);
}

//夜间模式
- (IBAction)nightModel:(id)sender {
     ESLog(@"%@",sender);
}

//搜索
- (IBAction)search:(id)sender {
     ESLog(@"%@",sender);
}

//天气
- (IBAction)weather:(id)sender {
     ESLog(@"%@",sender);
}

//随机穿越
- (IBAction)random:(id)sender {
     ESLog(@"%@",sender);
}

@end
